package com.yt.hadoop.order;

/**
 * @Classname OrderReducer
 * @Description
 * @Date 2021/12/7 17:18
 * @Create by 杨涛
 */
import java.io.IOException;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

public class OrderReducer extends Reducer<OrderBean, NullWritable, OrderBean, NullWritable> {

    @Override
    protected void reduce(OrderBean key, Iterable<NullWritable> values, Context context)		throws IOException, InterruptedException {

        context.write(key, NullWritable.get());
    }
}
